package Classes
{
	import UIFree.FX;
	import UIFree.FX.fx_runningProperty;
	
	import flash.display.Sprite;
	import flash.geom.ColorTransform;
	import flash.system.LoaderContext;

	public class FXLoader extends CLoader {
		private var _runningProperty: fx_runningProperty;
		public function FXLoader(a_parent:Sprite=null, URL:String='', a_onComplete:Function=null, a_x:Number=0, a_y:Number=0, context:LoaderContext=null) {
			super(a_parent, URL, a_onComplete, a_x, a_y, context);
			_runningProperty = new fx_runningProperty(this);
		}
		
		public function set light(a_light: Number): void {
			transform.colorTransform = new ColorTransform(a_light, a_light, a_light, alpha);
		}
		
		public function fx(propertyName: String, a_from: *, a_to:*, 
								a_transition: Function=null, fps: int =50, 
								duration: int=500): FX {
			return _runningProperty.fx(propertyName, a_from, a_to, a_transition, fps, duration);
		}
	}
}